package com.so206.service;

import com.github.pagehelper.PageInfo;
import com.so206.po.SysRole;
import com.so206.po.ext.SysRoleExt;

import java.util.List;


public interface SysRoleService {

    SysRole findById(Long id);

    SysRole save(SysRole role, String menuIds);

    SysRole update(SysRole role, String menuIds);

    int delete(Long id);

    PageInfo<SysRole> findByPage(Integer pageNum, Integer rows);

    Boolean roleIsHavingFunction(Long id, Long id1);

    List<SysRole> findAllRoles();

    SysRoleExt findAllFunctionByRole(Long role_id);

}
